package model

import (
	"errors"
)

var ErrNotFound = errors.New("Rows selectd is zero")
var ErrNotUpdated = errors.New("Rows affected by update is zero")
var ErrNotDeleted = errors.New("Rows affected by delete is zero")

var IsConstraintError = errors.New("Constraint failed")
var IsValidationError = errors.New("Validation failed")
var IsNotSingular = errors.New("Name is not singular")

type UserRel struct {
	Auth        *UserAuth                     `json:"auth"`
	Detail      *UserDetail                   `json:"detail"`
	Meta        []*UserMetum                  `json:"meta"`
	Media       []*UserAttachmentRelationship `json:"media"`
	DelMetaIds  []uint64                      `json:"delMetaIds"`
	DelMediaIds []uint64                      `json:"delMediaIds"`
}

type UserFollowRel struct {
	Blacklist []string `json:"blacklist"`
}
